<?php
namespace app\index\controller;

class Index
{
    public function index()
    {

        redis()->set('task_num_1',3);
        //echo redis()->get('task_num_1');

        dump(redis()->sadd('task_work',time()));
        dump(redis()->sadd('task_work',date('ymdhis')));

    }

    public function hello($name = 'ThinkPHP5')
    {
	dump(redis()->smembers('user_chat'));
        dump(redis()->smembers('task_work'));
    }

    public function webDemo(){
        redis()->set('task_num_1',3);
        return $this->fetch();
    }
}
